/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mavenrentcars.dao.hibernate;

import com.mavenrentcars.dao.PlaceDao;
import com.mavenrentcars.model.Place;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

/**
 *
 * @author serg
 */
@Repository("placeDao")
public class PlaceDaoHibernate extends GenericDaoHibernate<Place, Integer> implements PlaceDao {

    @Autowired
    private SessionFactory sessionFactory;

    @Autowired
    public PlaceDaoHibernate(@Qualifier("sessionFactory") SessionFactory sessionFactory) {
        super(Place.class);
        setSessionFactory(sessionFactory);
    }
}
